using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Resources;
using System.Runtime.Serialization;
using System.Text;
using System.Threading.Tasks;

namespace KPIS.GERP.Models.FIM
{
    using System;
    using System.Collections.Generic;

    [Table("fim_money_request_dtls"), DataContract]
    //[Table("FimPayRequestDtl"), DataContract]
    public class PayRequestDtl
    {

		[Key, DatabaseGenerated(DatabaseGeneratedOption.Identity)]
		[DataMember, Display(Name = "MoneyReqDtlsId", ResourceType = typeof(Resources.MoneyRequestDtlsResource))]
        [Column("money_req_dtls_seq")]
        public int PayReqDtlId { get; set; }

        [ForeignKey("PayRequest")]
        [DataMember, Display(Name = "MoneyReqId", ResourceType = typeof(Resources.MoneyRequestDtlsResource))]
        [Column("money_req_seq")]
        public int PayReqId { get; set; }

        [DataMember, Display(Name = "MoneyReqDtlsName", ResourceType = typeof(Resources.MoneyRequestDtlsResource))]
        [Column("money_req_dtls_name")]
        public string Name { get; set; }

        [ForeignKey("ProjectOperationExpense")]
        [DataMember, Display(Name = "BgmProjOperExpId", ResourceType = typeof(Resources.MoneyRequestDtlsResource))]
        [Column("bgm_proj_oper_exp_seq")]
        public Nullable<int> ProjOperExpId { get; set; }

        [ForeignKey("JobSite")]
        [DataMember, Display(Name = "JobSiteId", ResourceType = typeof(Resources.MoneyRequestDtlsResource))]
        [Column("job_site_seq")]
        public Nullable<int> JobSiteId { get; set; }

        [DataMember, Display(Name = "PercentVat", ResourceType = typeof(Resources.MoneyRequestDtlsResource))]
        [Column("percent_vat")]
        public Nullable<double> PercentVat { get; set; }

        [DataMember, Display(Name = "PercentTax", ResourceType = typeof(Resources.MoneyRequestDtlsResource))]
        [Column("percent_tax")]
        public Nullable<double> PercentTax { get; set; }

        [DataMember, Display(Name = "Amount", ResourceType = typeof(Resources.MoneyRequestDtlsResource))]
        [Column("amount")]
        public Nullable<decimal> Amount { get; set; }

        [DataMember, Display(Name = "AmountVat", ResourceType = typeof(Resources.MoneyRequestDtlsResource))]
        [Column("amount_vat")]
        public Nullable<decimal> AmountVat { get; set; }

        [DataMember, Display(Name = "AmountTax", ResourceType = typeof(Resources.MoneyRequestDtlsResource))]
        [Column("amount_tax")]
        public Nullable<decimal> AmountTax { get; set; }

        [DataMember, Display(Name = "BathAmount", ResourceType = typeof(Resources.MoneyRequestDtlsResource))]
        [Column("bath_amount")]
        public Nullable<decimal> NetAmount { get; set; }


        [DataMember, Display(Name = "RecordStatus", ResourceType = typeof(Resources.MoneyRequestDtlsResource))]
        [Column("record_status")]
        public string RecordStatus { get; set; }

        [DataMember, Display(Name = "CreatedBy", ResourceType = typeof(Resources.MoneyRequestDtlsResource))]
        [Column("created_by")]
        public Nullable<int> CreatedBy { get; set; }

        [DataMember, Display(Name = "CreatedWhen", ResourceType = typeof(Resources.MoneyRequestDtlsResource))]
        [Column("created_when")]
        public Nullable<System.DateTime> CreatedWhen { get; set; }

        [DataMember, Display(Name = "UpdatedBy", ResourceType = typeof(Resources.MoneyRequestDtlsResource))]
        [Column("updated_by")]
        public Nullable<int> UpdatedBy { get; set; }

        [DataMember, Display(Name = "UpdatedWhen", ResourceType = typeof(Resources.MoneyRequestDtlsResource))]
        [Column("updated_when")]
        public Nullable<System.DateTime> UpdatedWhen { get; set; }

        public virtual PayRequest PayRequest { get; set; }

        public virtual BGM.ProjectOperationExpense ProjectOperationExpense { get; set; }

		public virtual HRM.JobSite JobSite { get; set; }

    }
}